/*
 * SourceFile.cpp
 *
 *  Created on: Nov 19, 2010
 *      Author: dhovemey
 */

#include <cassert>
#include "fe/ASTNode.h"
#include "runtime/SourceFile.h"

SourceFile::SourceFile(const std::string &srcFileName, ASTNode *unitASTToAdopt)
	: m_srcFileName(srcFileName)
	, m_unitAST(unitASTToAdopt)
	, m_refCount(0)
{
}

SourceFile::~SourceFile()
{
	assert(m_refCount == 0);
	delete m_unitAST;
}
